//
//  SHKDotModel.h
//  EagleCloud
//
//  Created by Cer on 2019/9/20.
//
// 类的创建者: 宋鸿康
// 类的描述说明: 智能笔的具体点
#import <YsRealmTools/YsRealmTools.h>

@interface YsNoteSDKDotModel : YsRealmToolsBaseModel
/** 区域id */
@property (nonatomic, assign) int SectionID;
/** 用户id */
@property (nonatomic, assign) int OwnerID;
/** 书本id */
@property (nonatomic, assign) int BookID;
/** 页id */
@property (nonatomic, assign) int PageID;
/** 点计数器 0-255 */
@property (nonatomic, assign) int counter;
/** 笔的压力 */
@property (nonatomic, assign) int force;
/** 笔的角度 */
@property (nonatomic, assign) int angle;
/** x坐标整数部分 */
@property (nonatomic, assign) int x;
/** x坐标小数部分 */
@property (nonatomic, assign) int fx;
/** y坐标整数部分 */
@property (nonatomic, assign) int y;
/** y坐标小数部分 */
@property (nonatomic, assign) int fy;
/** 创建时间 */
@property (nonatomic, assign) long createTime;
/** 创建时间 */
@property (nonatomic, assign) long timelong;
/** 定义点的类型,力为0则是提起状态 */
@property (nonatomic, assign) int dotType;
/** 定义点的类型,力为0则是提起状态 */
@property (nonatomic, assign) int drawType;
/** 定义点的类型,力为0则是提起状态 */
@property (nonatomic, assign) int type;
/** sdk没有备注。不知道啥意思。先存进去再说 */
@property (nonatomic, assign) float ab_x;
/** sdk没有备注。不知道啥意思。先存进去再说 */
@property (nonatomic, assign) float ab_y;
/** 用户id */
@property (nonatomic, assign) BOOL isRight;
/** 颜色字符串 */
@property (nonatomic,strong) NSString *color;
/** 线条宽度 */
@property (nonatomic, assign) int width;
/** 转换过后的坐标X */
@property (nonatomic, assign) CGFloat drawPointX;
//drawpointX
/** 转换过后的坐标Y */
@property (nonatomic, assign) CGFloat drawPointY;
//drawpointY
/** 类型 */
@property (nonatomic, assign) int action;

- (instancetype)initWithx:(int)x
                        y:(int)y
                          dotType:(int)dotType
                           pageID:(int)pageID
                         force:(int)force
                          lineWidth:(int)lineWidth
                         lineColor:(NSString *)lineColor
                               fx:(int)fx
                                fy:(int)fy
                                drawpointX:(CGFloat)drawpointX
                                drawpointY:(CGFloat)drawpointY
                                    timeLong:(long)timeLong
                                    action:(int)action
                                bookID:(int)bookID;
@end

RLM_ARRAY_TYPE(YsNoteSDKDotModel)
